﻿@model Object
@{
    var descriptor = ViewData.ModelMetadata.AdditionalValues["ViewPortDescriptor"] as Easy.ViewPort.Descriptor.BaseDescriptor;
    if(ViewData.ModelMetadata.IsComplexType)
    {
        return;
    }
}
@Html.Hidden("", Model, descriptor.ToHtmlProperties())